/**
 * 
 */
package com.swfee.qinben.dto.active;

/**
 * @author ddr
 *
 */
public class LinkerModel {

	private String fullName;
	private String address;
	private String mobile;
	
	
	
	public LinkerModel(String fullName, String address, String mobile) {
		super();
		this.fullName = fullName;
		this.address = address;
		this.mobile = mobile;
	}
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getLastName(){
		if(fullName!=null){
			return fullName.charAt(fullName.length()-1)+"";
		}
		return "";
	}
	
	public String getMobileShow(){
		if(mobile!=null&& mobile.length()>4 ){
			return mobile.replaceAll("(\\d{3})(\\d{4})?(\\d{4})?", "$1 $2 $3");
		}
		return "";
	}
	
}
